package com.cqie.rbac.util;

/**
 * @Author 夏兵
 * @Date 2021/9/6
 */
public enum ResultCode {

    /**
     * 成功
     */
    SUCCESS("2000", "成功"),
    ERROR("9999", "失败"),
    UNAUTH("4001", "未授权"),
    NOT_LOGIN("3006", "尚未登录"),
    UNKNOW_SERVER_ERROR("2001", "未知异常, 请联系管理员!");

    private final String code;
    private final String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
